package com.longrise.common.base;

import android.content.Context;

/**
 * Created by callxkj on 2016/11/18.
 * 顶层presenter
 */

public abstract class BasePresenter<V> {
    public Context mContext;
    public V mView;
    public RxManager mRxManager ;

    public void setRxManager(RxManager rxManager){
        this.mRxManager = rxManager;
    }

    public void attachV(V v) {
        this.mView = v;
    }

    public void detachV() {
        mRxManager.clear();
    }

    protected abstract void init();

}
